package top.zhangjianyong.tools.service.mybatis.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import top.zhangjianyong.tools.entity.guanjiangyuan.House;
import top.zhangjianyong.tools.mapper.HouseMapper;
import top.zhangjianyong.tools.service.mybatis.IHouseService;

import java.util.List;

/**
 * @author ： zhangjianyong
 * @date ： 2023/7/5 10:28 AM
 */
@Service
public class IHouseServiceImpl extends ServiceImpl<HouseMapper, House> implements IHouseService {

    @Override
    public House qryByHouseNo(String houseNo) {
        return lambdaQuery().eq(House::getHouseNo, houseNo).one();
    }

    @Override
    public List<House> searchHouse(String key) {
        return baseMapper.searchHouse(key);
    }
}
